package com.data.service.catalog;

import com.data.model.catalog.DimensionCatalogDTO;
import com.data.model.catalog.IndexCatalogDTO;
import com.data.model.catalog.TableCatalogDTO;
import com.data.model.request.create.CreateDimensionRequest;
import com.data.model.request.create.CreateIndexRequest;
import com.data.model.request.create.CreateTableRequest;
import com.data.model.request.query.QueryDimensionRequest;
import com.data.model.request.query.QueryIndexRequest;
import com.data.model.request.query.QueryTableRequest;

import java.util.List;

public interface CatalogService {

    /**
     * 保存维度
     */
    public void saveDimension(CreateDimensionRequest request);

    /**
     * 查询维度
     */
    public List<DimensionCatalogDTO> queryDimension(QueryDimensionRequest request);

    /**
     * 保存表
     */
    public void saveTable(CreateTableRequest request);

    /**
     * 查询表
     */
    public List<TableCatalogDTO> queryTable(QueryTableRequest request);

    /**
     * 保存指标
     */
    public void saveIndex(CreateIndexRequest request);

    /**
     * 查询指标
     */
    public List<IndexCatalogDTO> queryIndex(QueryIndexRequest request);
}
